import threading
import time

def task():
    cur_thread = threading.current_thread()
    for x in range(3):
        print("%s 正在执行:%d" % (cur_thread,x))
        time.sleep(0.4)

if __name__ == '__main__':
    for x in range(3):
        task_thread = threading.Thread(target=task)
        task_thread.start()